package org.bggood.org.service;

import org.bggood.basic.PageList;
import org.bggood.org.domain.Department;
import org.bggood.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    /**
     * 添加
     * @param department
     */
    void add(Department department);

    /**
     * 根据id删除
     * @param id
     */
    void delete(Long id);

    /**
     * 更新
     * @param department
     */
    void update(Department department);

    /**
     * 查询单条
     * @param id
     * @return
     */
    Department queryById(Long id);

    /**
     * 查询全部
     * @return
     */
    List<Department> queryAll();
    /**
     * 分页查询
     * @param query
     * @return
     */
    public PageList<Department> pageLoad(DepartmentQuery query);
}
